using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Topology
{
    /// <summary>
    /// <para>Validate Topology</para>
    /// <para>Validates a geodatabase topology.</para>
    /// <para>验证地理数据库拓扑。</para>
    /// </summary>    
    [DisplayName("Validate Topology")]
    public class ValidateTopology : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ValidateTopology()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_topology">
        /// <para>Input Topology</para>
        /// <para>The geodatabase topology to be validated.</para>
        /// <para>要验证的地理数据库拓扑。</para>
        /// </param>
        public ValidateTopology(object _in_topology)
        {
            this._in_topology = _in_topology;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Validate Topology";

        public override string CallName => "management.ValidateTopology";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_topology, _visible_extent.GetGPValue(), _out_topology];

        /// <summary>
        /// <para>Input Topology</para>
        /// <para>The geodatabase topology to be validated.</para>
        /// <para>要验证的地理数据库拓扑。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Topology")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_topology { get; set; }


        /// <summary>
        /// <para>Visible Extent</para>
        /// <para><xdoc>
        ///   <para>Specifies whether the current visible extent of the map or the full extent of the topology will be validated. If the tool is run in the Python window or in a Python script, the entire extent of the topology will be validated regardless of this parameter setting.
        ///   <bulletList>
        ///     <bullet_item>Checked—Only the current visible extent will be validated  </bullet_item><para/>
        ///     <bullet_item>Unchecked—The entire extent of the topology will be validated. This is the default.  </bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para><xdoc>
        /// <para>指定是验证地图的当前可见范围还是拓扑的完整范围。如果该工具在 Python 窗口或 Python 脚本中运行，则无论此参数设置如何，都将验证拓扑的整个范围。
        ///   <bulletList>
        ///     <bullet_item>选中 - 仅验证当前可见范围</bullet_item><para/>
        ///     <bullet_item>未选中 - 将验证拓扑的整个范围。这是默认设置。 </bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Visible Extent")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _visible_extent_value _visible_extent { get; set; } = _visible_extent_value._false;

        public enum _visible_extent_value
        {
            /// <summary>
            /// <para>Visible_Extent</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("Visible_Extent")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>Full_Extent</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("Full_Extent")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Updated Input Topology</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Input Topology")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_topology { get; set; }


        public ValidateTopology SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}